/*
 * @Description:
 * @Author: 稽辉
 * @Date: 2025-01-23 11:32:06
 * @LastEditTime: 2025-01-23 12:33:46
 * @LastEditors: 稽辉
 */
import type { PageParams } from '@/types/global'
import type { HotResult } from '@/types/hot'
import { http } from '@/utils/http'
type HotParams = PageParams & { subType?: string }

/**
 *  通用API
 * @param url 请求网址
 * @param data 请求体
 * @returns promise对象
 */

export const getHotRecommendAPI = (url: string, data?: HotParams) => {
  return http<HotResult>({
    method: 'GET',
    url,
    data,
  })
}
